﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace winpacklib
{
    public class Repository
    {
        private String _url;
        private List<Package> _packages = new List<Package>();

        /// <summary>
        /// Collection of packages on this server
        /// </summary>
        public List<Package> Packages
        {
            get { return _packages; }
            set { _packages = value; }
        }

        /// <summary>
        /// Base url for this repository
        /// </summary>
        public String Url
        {
            get { return _url; }
            set { _url = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="repositoryUrl">Base url to repository</param>
        public Repository(String repositoryUrl)
        {
            this._url = repositoryUrl;
        }

        /// <summary>
        /// Retrieve latest repository and package info
        /// </summary>
        /// <returns>True if update successful</returns>
        public bool Update()
        {
            return true;
        }
    }
}
